/*
 * @Author: 公司-啊彪
 * @Date: 2023-08-04 16:36:07
 * @LastEditTime: 2023-08-04 17:19:57
 * @LastEditors: 公司-啊彪
 * @Description: 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import mongoose from "mongoose";

const Schema = mongoose.Schema;
const DailyTaskSchema: mongoose.Schema = new Schema({
  id: { type: Number, display: "任务id" },
  roleId: { type: Number, display: "角色id", index: true },
  isRecive: { type: Boolean, display: "是否领取", default: false },
  target: { type: Number, display: "任务目标", default: 1 },
  progress: { type: Number, diplay: "任务进度", default: 0 },
  updateTime: { type: String, display: '更新时间' },
  createTime: { type: String, display: '创建时间' },
}).index({ roleId: 1 });

const GDailyTask = mongoose.model("GDailyTask", DailyTaskSchema);
export default GDailyTask;